package com.njh.xiu;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.njh.xiu.widget.WhewView;

public class MainActivity extends AppCompatActivity {

    public WhewView mWhewView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mWhewView=(WhewView)findViewById(R.id.wv_video);
        mWhewView.start();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        mWhewView.stop();
    }
}
